package com.henghai.zhenxuan.data.bean;

import java.io.Serializable;

public class LoginBean implements Serializable {

    private String placementIdOne;
    private String placementIdTwo;
    private String placementIdThree;

    private String tobidSplash;
    private String tobibInner;
    private String tobidReward;

    private String packageVersion;
//    private String packageTabs;
    private String isPrivate;
    private String packageName;

    private String placementTwoCount;

    public int getPlacementTwoCount() {
        if (placementTwoCount == null || placementTwoCount.isEmpty()) {
            return 2;
        }
        return Integer.parseInt(placementTwoCount);
    }

    public String getIsPrivate() {
        return isPrivate;
    }

//    public String getPackageTabs() {
//        if (packageTabs == null || packageTabs.isEmpty()) {
//            return "1,2,3,4";
//        }
//        return "1,2,3,4";
//    }

    public String getPlacementIdOne() {
        if (placementIdOne == null || placementIdOne.isEmpty()) {
            return "";
        }
        return placementIdOne;
    }

    public String getPlacementIdTwo() {
        if (placementIdTwo == null || placementIdTwo.isEmpty()) {
            return "";
        }
        return placementIdTwo;
    }

    public String getPlacementIdThree() {
        if (placementIdThree == null || placementIdThree.isEmpty()) {
            return "";
        }
        return placementIdThree;
    }

    public int getPackageVersion() {
        if (packageVersion == null) {
            return 1;
        }
        return Integer.parseInt(packageVersion);
    }

    private String currUserVersion;

    private String token;
    private Version version;

    public Version getVersion() {
        return version;
    }

    public void setVersion(Version version) {
        this.version = version;
    }

    public String getCurrUserVersion() {
        return currUserVersion;
    }

    public void setCurrUserVersion(String currUserVersion) {
        this.currUserVersion = currUserVersion;
    }

    public String getTobidSplash() {
        return tobidSplash;
    }

    public void setTobidSplash(String tobidSplash) {
        this.tobidSplash = tobidSplash;
    }

    public String getTobibInner() {
        return tobibInner;
    }

    public void setTobibInner(String tobibInner) {
        this.tobibInner = tobibInner;
    }

    public String getTobidReward() {
        return tobidReward;
    }

    public void setTobidReward(String tobidReward) {
        this.tobidReward = tobidReward;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getPackageName() {
        return packageName;
    }

    public static class Version implements Serializable {
        private String remark;
        private int id;
        private String androidUrl;
        private String iosUrl;
        private String androidVersion;
        private String iosVersion;
        private String isForce;

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAndroidUrl() {
            return androidUrl;
        }

        public void setAndroidUrl(String androidUrl) {
            this.androidUrl = androidUrl;
        }

        public String getIosUrl() {
            return iosUrl;
        }

        public void setIosUrl(String iosUrl) {
            this.iosUrl = iosUrl;
        }

        public String getAndroidVersion() {
            return androidVersion;
        }

        public void setAndroidVersion(String androidVersion) {
            this.androidVersion = androidVersion;
        }

        public String getIosVersion() {
            return iosVersion;
        }

        public void setIosVersion(String iosVersion) {
            this.iosVersion = iosVersion;
        }


        public String getIsForce() {
            return isForce;
        }

        public void setIsForce(String isForce) {
            this.isForce = isForce;
        }

        @Override
        public String toString() {
            return "Version{" +
                    "remark='" + remark + '\'' +
                    ", id=" + id +
                    ", androidUrl='" + androidUrl + '\'' +
                    ", iosUrl='" + iosUrl + '\'' +
                    ", androidVersion='" + androidVersion + '\'' +
                    ", iosVersion='" + iosVersion + '\'' +
                    ", isForce='" + isForce + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "LoginBean{" +
                "placementIdOne='" + placementIdOne + '\'' +
                ", placementIdTwo='" + placementIdTwo + '\'' +
                ", placementIdThree='" + placementIdThree + '\'' +
                ", tobidSplash='" + tobidSplash + '\'' +
                ", tobibInner='" + tobibInner + '\'' +
                ", tobidReward='" + tobidReward + '\'' +
                ", packageVersion='" + packageVersion + '\'' +
                ", isPrivate='" + isPrivate + '\'' +
                ", packageName='" + packageName + '\'' +
                ", placementTwoCount='" + placementTwoCount + '\'' +
                ", currUserVersion='" + currUserVersion + '\'' +
                ", token='" + token + '\'' +
                ", version=" + version +
                '}';
    }
}
